-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux: Add AT_SYSINFO_EHDR constant #3027
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon. Please see the contribution instructions for more information. |
Thanks! @bors r+ |
linux: Add AT_SYSINFO_EHDR constant When passed to [`getauxval(3)`][2] this is used to retrieve the base address of the vdso mapped into the current process. It is defined the architecture specific `auxvec.h` headers but [it is defined to the same value in all of them][1] so I've put it in `src/unix/linux_like/linux/mod.rs` instead of in the arch submodule. [1]: https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/torvalds/linux%24+%23define+AT_SYSINFO_EHDR&patternType=standard&sm=1 [2]: https://man7.org/linux/man-pages/man3/getauxval.3.html
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
When passed to
getauxval(3)
this is used to retrieve the base address of the vdso mapped into the current process. It is defined the architecture specificauxvec.h
headers but it is defined to the same value in all of them so I've put it insrc/unix/linux_like/linux/mod.rs
instead of in the arch submodule.